home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 10 / BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / A / add images.cpt / pix_io.h < prev    next >
MacBinary  |  1989-06-22  |  1.4 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: pix_io.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jun 22 18:06:02 1989, modified Thu Jun 22 18:06:02 1989, creator Think C, type ASCII, 879 bytes "pix_io.h" , at 0x3ef 348 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default
100% unp64ID P64 Guessed entry=$0802, unpacker=$0001 default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 70 69 78 5f 69 6f | 2e 68 00 00 00 00 00 00 |..pix_io|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 6f 00 | 00 01 5c a0 c7 13 4a a0 |......o.|..\...J.|
|00000060| c7 13 4a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..J.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 87 56 00 00 |........|.....V..|
|00000080| 2f 2a 0d 09 70 69 78 5f | 69 6f 2e 68 0d 0d 09 66 |/*..pix_|io.h...f|
|00000090| 69 6c 65 20 69 6e 70 75 | 74 20 61 6e 64 20 6f 75 |ile inpu|t and ou|
|000000a0| 74 70 75 74 20 6f 66 20 | 50 49 43 54 73 20 61 6e |tput of |PICTs an|
|000000b0| 64 20 63 75 74 20 61 6e | 64 20 70 61 73 74 65 20 |d cut an|d paste |
|000000c0| 77 69 74 68 20 43 4c 49 | 50 42 4f 41 52 44 0d 09 |with CLI|PBOARD..|
|000000d0| 61 6e 64 20 6d 6f 73 74 | 20 69 6d 70 6f 72 74 61 |and most| importa|
|000000e0| 6e 74 20 2d 20 63 6f 6e | 76 65 72 73 69 6f 6e 20 |nt - con|version |
|000000f0| 66 72 6f 6d 20 73 74 64 | 20 70 69 63 74 73 20 74 |from std| picts t|
|00000100| 6f 20 74 68 65 20 70 72 | 6f 70 65 72 20 63 6f 6c |o the pr|oper col|
|00000110| 6f 72 73 0d 09 66 6f 72 | 20 50 52 4f 54 4f 4e 2c |ors..for| PROTON,|
|00000120| 20 46 4c 4f 55 52 49 4e | 45 2c 20 61 6e 64 20 74 | FLOURIN|E, and t|
|00000130| 68 65 20 6d 69 78 74 75 | 72 65 20 6f 66 20 74 68 |he mixtu|re of th|
|00000140| 65 20 74 77 6f 0d 0d 2a | 2f 0d 0d 23 69 6e 63 6c |e two..*|/..#incl|
|00000150| 75 64 65 20 22 69 6e 69 | 74 63 6c 75 74 2e 68 22 |ude "ini|tclut.h"|
|00000160| 0d 0d 73 68 6f 72 74 20 | 47 65 74 50 69 63 28 20 |..short |GetPic( |
|00000170| 53 46 52 65 70 6c 79 20 | 74 68 65 52 65 70 6c 79 |SFReply |theReply|
|00000180| 2c 20 20 50 69 63 48 61 | 6e 64 6c 65 20 2a 73 6f |, PicHa|ndle *so|
|00000190| 75 72 63 65 20 29 3b 0d | 2f 2a 20 72 65 61 64 73 |urce );.|/* reads|
|000001a0| 20 50 49 43 54 20 66 69 | 6c 65 20 61 6e 64 20 73 | PICT fi|le and s|
|000001b0| 74 6f 72 65 73 20 69 6e | 20 74 68 65 20 74 68 65 |tores in| the the|
|000001c0| 20 68 61 6e 64 6c 65 20 | 2a 2f 0d 0d 76 6f 69 64 | handle |*/..void|
|000001d0| 20 50 75 74 50 69 63 28 | 20 53 46 52 65 70 6c 79 | PutPic(| SFReply|
|000001e0| 20 74 68 65 52 65 70 6c | 79 2c 20 50 69 63 48 61 | theRepl|y, PicHa|
|000001f0| 6e 64 6c 65 20 72 65 73 | 75 6c 74 5f 70 69 63 2c |ndle res|ult_pic,|
|00000200| 20 50 61 6c 65 74 74 65 | 48 61 6e 64 6c 65 20 74 | Palette|Handle t|
|00000210| 68 65 50 61 6c 65 74 74 | 65 20 29 3b 0d 2f 2a 20 |hePalett|e );./* |
|00000220| 77 72 69 74 65 20 74 68 | 65 20 50 69 78 65 6c 20 |write th|e Pixel |
|00000230| 69 6d 61 67 65 20 69 6e | 74 6f 20 61 20 50 49 43 |image in|to a PIC|
|00000240| 54 20 66 69 6c 65 20 74 | 68 61 74 20 75 73 65 73 |T file t|hat uses|
|00000250| 20 74 68 65 50 61 6c 65 | 74 74 65 20 2a 2f 0d 0d | thePale|tte */..|
|00000260| 43 47 72 61 66 50 74 72 | 20 70 69 63 5f 74 6f 5f |CGrafPtr| pic_to_|
|00000270| 62 6d 61 70 28 20 50 69 | 63 48 61 6e 64 6c 65 20 |bmap( Pi|cHandle |
|00000280| 70 69 63 48 2c 20 52 65 | 63 74 20 2a 20 66 72 61 |picH, Re|ct * fra|
|00000290| 6d 65 2c 20 47 44 48 61 | 6e 64 6c 65 20 74 68 65 |me, GDHa|ndle the|
|000002a0| 6d 61 78 64 65 76 69 63 | 65 20 29 3b 0d 2f 2a 20 |maxdevic|e );./* |
|000002b0| 63 72 65 61 74 65 20 61 | 20 61 6e 20 6f 66 66 73 |create a| an offs|
|000002c0| 63 72 65 65 6e 20 70 6f | 72 74 2d 70 69 78 2d 6d |creen po|rt-pix-m|
|000002d0| 61 70 20 61 6e 64 20 66 | 69 6c 6c 20 69 74 20 77 |ap and f|ill it w|
|000002e0| 69 74 68 20 74 68 65 20 | 70 69 63 74 75 72 65 20 |ith the |picture |
|000002f0| 2a 2f 0d 0d 76 6f 69 64 | 20 61 64 64 5f 62 6d 61 |*/..void| add_bma|
|00000300| 70 73 28 20 43 47 72 61 | 66 50 74 72 20 70 72 6f |ps( CGra|fPtr pro|
|00000310| 74 6f 6e 5f 62 6d 61 70 | 2c 20 52 65 63 74 20 2a |ton_bmap|, Rect *|
|00000320| 70 72 6f 74 6f 6e 5f 72 | 65 63 74 2c 20 73 68 6f |proton_r|ect, sho|
|00000330| 72 74 20 70 72 5f 6f 66 | 66 5f 74 6f 70 2c 20 73 |rt pr_of|f_top, s|
|00000340| 68 6f 72 74 20 70 72 5f | 6f 66 66 5f 6c 65 66 74 |hort pr_|off_left|
|00000350| 2c 0d 09 09 09 09 43 47 | 72 61 66 50 74 72 20 66 |,.....CG|rafPtr f|
|00000360| 6c 6f 75 72 69 6e 65 5f | 62 6d 61 70 2c 20 52 65 |lourine_|bmap, Re|
|00000370| 63 74 20 2a 66 6c 6f 75 | 72 69 6e 65 5f 72 65 63 |ct *flou|rine_rec|
|00000380| 74 2c 20 73 68 6f 72 74 | 20 66 6c 5f 6f 66 66 5f |t, short| fl_off_|
|00000390| 74 6f 70 2c 20 73 68 6f | 72 74 20 66 6c 5f 6f 66 |top, sho|rt fl_of|
|000003a0| 66 5f 6c 65 66 74 2c 0d | 09 09 09 09 43 47 72 61 |f_left,.|....CGra|
|000003b0| 66 50 74 72 20 2a 72 65 | 73 75 6c 74 5f 62 6d 61 |fPtr *re|sult_bma|
|000003c0| 70 2c 20 52 65 63 74 20 | 2a 72 65 73 75 6c 74 5f |p, Rect |*result_|
|000003d0| 72 65 63 74 2c 20 47 44 | 48 61 6e 64 6c 65 20 74 |rect, GD|Handle t|
|000003e0| 68 65 6d 61 78 64 65 76 | 69 63 65 20 29 3b 0d 00 |hemaxdev|ice );..|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000410| 6c 5f 5f 0d 23 64 65 66 | 69 6e 65 20 5f 5f 70 61 |l__.#def|ine __pa|
|00000420| 73 63 61 6c 5f 5f 0d 0d | 70 61 73 63 61 6c 20 76 |scal__..|pascal v|
|00000430| 08 70 69 78 5f 69 6f 2e | 68 78 02 00 00 00 54 45 |.pix_io.|hx....TE|
|00000440| 58 54 4b 41 48 4c 01 00 | 01 40 00 40 00 00 00 00 |XTKAHL..|.@.@....|
|00000450| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 01 40 00 40 |..TEXTKA|HL...@.@|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 a0 c5 1e 62 00 00 | 03 6f 00 00 01 5c 2e 2e |.....b..|.o...\..|
|00000480| 29 3b 0d 70 61 73 63 61 | 6c 20 6c 6f 6e 67 20 43 |);.pasca|l long C|
|00000490| 61 6c 6c 50 61 73 63 61 | 6c 4c 28 2e 2e 2e 29 3b |allPasca|lL(...);|
|000004a0| 0d 0d 63 68 61 72 20 2a | 43 74 6f 50 73 74 72 28 |..char *|CtoPstr(|
|000004b0| 63 68 61 72 20 2a 29 3b | 0d 63 68 61 72 20 2a 50 |char *);|.char *P|
|000004c0| 74 6f 43 73 74 72 28 63 | 68 61 72 20 2a 29 3b 0d |toCstr(c|har *);.|
|000004d0| 0d 23 65 6e 64 69 66 20 | 5f 5f 70 61 73 63 61 6c |.#endif |__pascal|
|000004e0| 5f 5f 66 69 6e 65 09 6e | 6f 45 72 72 09 30 0d 0d |__fine.n|oErr.0..|
|000004f0| 74 79 70 65 64 65 66 09 | 69 6e 74 09 4f 73 45 72 |typedef.|int.OsEr|
|00000500| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 07 4d |........|.......M|
|00000510| 6f 6e 61 63 6f 44 00 00 | 01 00 00 00 01 16 00 00 |onacoD..|........|
|00000520| 00 16 00 00 00 46 00 36 | 64 ec 06 40 00 00 00 1c |.....F.6|d..@....|
|00000530| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00000540| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 36 63 78 |........|.....6cx|
|00000550| 03 eb ff ff 00 00 00 08 | 00 36 63 10 00 00 00 00 |........|.6c.....|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+